<!--
  Generated template for the EvaluationPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>看房记录</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <ion-list *ngFor="let user of users;let index = index">

    <ion-item>
      <ion-avatar item-start>
        <img src="http://owhah4u2f.bkt.clouddn.com/images/user/{{user.userId}}.jpg">
      </ion-avatar>
      <h2>{{user.userName}}</h2>
      <p>{{user.comment}}</p>
      <p>{{user.publishTime| date:'MM-dd HH:mm:ss'}}</p>
      <ion-buttons item-end >
        <ion-item item-end (click)="agree(user.arrangeId,index)">
          <ion-icon name="thumbs-up" ></ion-icon>
          {{user.agreeNum}}
        </ion-item>


      </ion-buttons>
    </ion-item>


    </ion-list>


</ion-content>
<ion-footer>
  <ion-toolbar>
    <p>
      <ion-item>
        <ion-input type="text" #comment placeholder="评论..."></ion-input>
      </ion-item>
    </p>
    <ion-buttons end>
      <button (click)="addArr(comment)"  ion-button icon-right color="royal">
        发表
        <ion-icon name="send"></ion-icon>
      </button>
    </ion-buttons>
  </ion-toolbar>
</ion-footer>
